<%@page import="persistent.factory.DAOFactory"%>
<%@page import="persistent.dao.UserDAO"%>
<%@page import="model.Vuser"%>
<%@page import="persistent.impl.UserDAOImpl"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="importhead.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/topmenu.css" rel="stylesheet" type="text/css" />
<title>Insert title here</title>

</head>
<body>
	<!-- 顶部菜单，使用 css/topmenu.css样式-->
		<div id="sysmenu">
			<span class="title">旅游博文</span> 
			<c:if test="${user.userid==null }">
				<a href="login.jsp" title="">登录</a>
				<a href="addnormaluser.html" title="">注册</a>
			</c:if>
			
			<c:if test="${user.usertype==1 }">
				<a href="addblogeruser.jsp?userid=${user.userid }" title="">成为博主</a>
			 	<a href="loginout.do" title="">退出登录</a>
			 	<a href="modifypwd .html" title="">修改密码</a>
				<a href="editblogeruser.html" title="">我的信息</a>
				<span class="but1">${user.userid }</span>
			</c:if>
			
			<c:if test="${user.usertype==2 }">
				<a href="EditfroumServlet.do" title="">博文发表</a>
			 		<a href="loginout.do" title="">退出登录</a>
			 		<a href="modifypwd.html" title="">修改密码</a>
					<a href="editblogeruser.html" title="">我的信息</a>
			 		<span class="but1">${user.userid }</span>
			</c:if>
			<div class="line"></div>
			<span class="but1">当前网站访问人数：10人</span>
		</div>
</body>
</html>